package org.yuyao.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yuyao.common.domain.vo.YuyaoResponse;

/**
 * 熔断默认返回
 */
@RestController
public class FallbackController {
    @GetMapping("/fallback")
    public YuyaoResponse fallback() {
        return   YuyaoResponse.error(503,"服务已熔断暂时不可用，请稍后重试！");
    }
}
